package ws.wsAOP.framework.aop.aopProxyFactory;

import java.util.List;

import ws.wsAOP.framework.aop.ProxyConfig;
import ws.wsAOP.framework.aop.WSAopProxy;
import ws.wsAOP.framework.aop.WSAopProxyFactory;
import ws.wsAOP.framework.aop.WSJdkDynamicAopProxy;

public class WSDefaultAopProxyFactory implements WSAopProxyFactory{

	public WSAopProxy createAopProxy(Object targetClass,List<ProxyConfig> proxyConfigList) throws Exception {
		if(targetClass.getClass().isInterface()){
			new WSJdkDynamicAopProxy(targetClass,proxyConfigList);
		}else{
			
		}
		return new WSJdkDynamicAopProxy(targetClass,proxyConfigList);
	}
	
	

}
